package enums;

/**
 * @author lyy
 * @date 2021/12/13
 */
public enum ResponseEnum {
	/**
	 * 正常响应
	 */
	SUCCESS(200, "success"),
	SYSTEM_ERROR(50000, "系统异常"),
	TOKEN_EXCEPTION(50001, "token异常"),
	NOT_TOKEN(50002, "未找到token")
	;
	private int code;
	private String message;

	ResponseEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

}
